Skip to content

gh-144727: Add test for circular lazy import crash (#144727)#144838

Merged
pablogsal merged 1 commit intopython:mainfrom
pablogsal:gh-144727-circular-lazy-import-test
Feb 15, 2026
Merged

gh-144727: Add test for circular lazy import crash (#144727)#144838
pablogsal merged 1 commit intopython:mainfrom
pablogsal:gh-144727-circular-lazy-import-test

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Feb 15, 2026

Add a regression test ensuring that circular lazy imports raise a proper
error (ImportCycleError) instead of crashing with a segfault. The crash
was fixed in gh-144733 but no test was added at the time.

Add a regression test ensuring that circular lazy imports raise a proper
error (ImportCycleError) instead of crashing with a segfault. The crash
was fixed in pythongh-144733 but no test was added at the time.
@pablogsal pablogsal force-pushed the gh-144727-circular-lazy-import-test branch from 663c89f to e8ea062 Compare February 15, 2026 16:13
@pablogsal pablogsal requested a review from DinoV as a code owner February 15, 2026 16:13
@pablogsal pablogsal merged commit 5fe139c into python:main Feb 15, 2026
45 checks passed
@pablogsal pablogsal deleted the gh-144727-circular-lazy-import-test branch February 15, 2026 18:36
bkap123 pushed a commit to bkap123/cpython that referenced this pull request Feb 28, 2026
…) (python#144838)

Add a regression test ensuring that circular lazy imports raise a proper
error (ImportCycleError) instead of crashing with a segfault. The crash
was fixed in pythongh-144733 but no test was added at the time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant